package com.imooc.fuxi1;

public class LingXingTest {
	public static void main(String[] args) {
		int i, j, q;
		for (i = 1; i < 6; i++) {
			for (j = 5; j > i; j--) {
				System.out.print(" ");
			}
			for (q = 1; q < i * 2; q++) {
				System.out.print("*");
			}
			System.out.println();
		}
		for (i = 1; i < 5; i++) {
			for (j = 1; j <= i; j++) {
				System.out.print(" ");
			}
			for (q = i * 2; q < 9; q++) {
				System.out.print("*");
			}
			System.out.println();
		}
	}

}
